<?php
class ResourceCategory extends AppModel{
	public $name='ResourceCategory';	
	
	public $validate = array(
		'name' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
						array('rule'=>array('unique','name'),'message'=>'data is already existed'))		
	);
	


	public $hasMany = array(
        'ResourcePage' => array(
            'className'     => 'ResourcePage', 
 			
            'dependent'=> true
        )
    );  
}
?>
